package com.markedquilt.comment.coomon;

import lombok.Data;

/**
 * @author ZhangKe
 * @Description
 * @date 2020/4/18 22:41.
 */
@Data
public class BussinessException extends Exception{
    private CommonError commonError;

    public BussinessException(){
        super();
    }
    public BussinessException(EmBussinessError embussinessError){
        super();
        this.commonError=new CommonError(embussinessError);
    }

    public BussinessException(EmBussinessError emBussinessError,String errMsg){
        super();
        this.commonError=new CommonError(emBussinessError);
        this.commonError.setErrorMsg(errMsg);
    }
}
